package com.example.login.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
public class AliyunSmsConfig {

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SmsConfig {
        private String accessKeyId;
        private String accessKeySecret;
        private String signName;
        private String templateCode;
    }

    @Bean
    public List<SmsConfig> smsConfigs() {
        List<SmsConfig> SMS_CONFIGS = new ArrayList<>();
        
        SMS_CONFIGS.add(new SmsConfig(
            "LTAI5tQ5F8JJ4zQeoHVw5HK5",
            "2CChkfcyIklYuF6LSjCMeGjJwhtUkL",
            "kl6",
            "SMS_476535134"
        ));
        
        return SMS_CONFIGS;
    }
} 